const app = getApp()

Page({
    data: {
        detailsInfo: null,
    },
    onLoad({ id }) {
        const _ = app.globalData.db.command
        app.globalData.db.collection('minipet').where({
            id: ~~id
        }).get({
            success: (res) => {
                console.log(res)
                this.setData({
                    detailsInfo: res.data[0]
                })
            }
        })
    },

    handleBack() {
        wx.navigateBack()
    }
})